package com.copractice.data.dao.user;

import com.copractice.data.dao.GenericDAO;
import com.copractice.data.entity.user.User;

/**
 * Represents DAO for <code>User</code> entity.
 *
 * @author Dmitry Churbanov (dmitry.churbanov@gmail.com)
 * @version 1.0 03/13/2009
 * @see com.copractice.data.dao.GenericDAO
 * @see com.copractice.data.entity.user.User
 */
public interface UserDAO extends GenericDAO<User, Long> {

    /**
     * Finds user by user name
     *
     * @param userName the <code>String</code> which contains user name
     *
     * @return instance of <code>User</code> class if user with such user name was found,
     *         otherwise returns null
     */
    public User findByUserName(String userName);
    
}
